﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Teacher/Teacher.master" AutoEventWireup="true" CodeFile="Award.aspx.cs" Inherits="Teacher_Award" %>

<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <dx:ASPxGridView ID="gvwAward" runat="server" Width="100%" 
    AutoGenerateColumns="False" CssFilePath="~/App_Themes/DevEx/{0}/styles.css" 
    CssPostfix="DevEx" DataSourceID="SqlDataSource1" KeyFieldName="AwardID" 
    onrowvalidating="gvwAward_RowValidating">
        <Columns>
            <dx:GridViewCommandColumn VisibleIndex="0">
                <EditButton Visible="True">
                </EditButton>
                <NewButton Visible="True">
                </NewButton>
                <DeleteButton Visible="True">
                </DeleteButton>
                <UpdateButton Text="Save">
                </UpdateButton>
                <ClearFilterButton Visible="True">
                </ClearFilterButton>
            </dx:GridViewCommandColumn>
            <dx:GridViewDataTextColumn FieldName="Award_Name" VisibleIndex="2">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn FieldName="Awrad_Details" VisibleIndex="3">
            </dx:GridViewDataTextColumn>
        </Columns>
        <SettingsEditing PopupEditFormWidth="600px" />
        <Settings ShowFilterRow="True" ShowTitlePanel="True" />
        <SettingsText Title="Award Management" />
        <Images SpriteCssFilePath="~/App_Themes/DevEx/{0}/sprite.css">
            <LoadingPanelOnStatusBar Url="~/App_Themes/DevEx/GridView/StatusBarLoading.gif">
            </LoadingPanelOnStatusBar>
            <LoadingPanel Url="~/App_Themes/DevEx/GridView/Loading.gif">
            </LoadingPanel>
        </Images>
        <ImagesFilterControl>
            <LoadingPanel Url="~/App_Themes/DevEx/GridView/Loading.gif">
            </LoadingPanel>
        </ImagesFilterControl>
        <Styles CssFilePath="~/App_Themes/DevEx/{0}/styles.css" CssPostfix="DevEx">
            <Header ImageSpacing="5px" SortingImageSpacing="5px">
            </Header>
            <LoadingPanel ImageSpacing="5px">
            </LoadingPanel>
        </Styles>
        <StylesEditors ButtonEditCellSpacing="0">
            <ProgressBar Height="21px">
            </ProgressBar>
        </StylesEditors>
    </dx:ASPxGridView>






<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:Institte_of_Fine_ArtsConnectionString %>" 
    DeleteCommand="DELETE FROM [Award] WHERE [AwardID] = @AwardID" 
    InsertCommand="INSERT INTO [Award] ([Award_Name], [Awrad_Details]) VALUES (@Award_Name, @Awrad_Details)" 
    SelectCommand="SELECT * FROM [Award]" 
    UpdateCommand="UPDATE [Award] SET [Award_Name] = @Award_Name, [Awrad_Details] = @Awrad_Details WHERE [AwardID] = @AwardID">
    <DeleteParameters>
        <asp:Parameter Name="AwardID" Type="Int32" />
    </DeleteParameters>
    <InsertParameters>
        <asp:Parameter Name="Award_Name" Type="String" />
        <asp:Parameter Name="Awrad_Details" Type="String" />
    </InsertParameters>
    <UpdateParameters>
        <asp:Parameter Name="Award_Name" Type="String" />
        <asp:Parameter Name="Awrad_Details" Type="String" />
        <asp:Parameter Name="AwardID" Type="Int32" />
    </UpdateParameters>
</asp:SqlDataSource>
<br />






</asp:Content>

